package com.traffic.between.config;

import com.traffic.managent.service.order.bean.OrderBean;

/**
 * 本地线程变量 解决参数传递问题
 * 
 */
public class OrderInfoContext {

	private static ThreadLocal<OrderBean> map;

	static {
		map = new ThreadLocal<OrderBean>();
	}

	public static OrderBean getContext() {
		return map.get();
	}

	public static void putContext(OrderBean r) {
		map.set(r);
	}

	public static void remove() {
		map.remove();
	}
}
